<h3>菜单列表</h3>

<table>
  <tr>
    <th>菜单名</th>
    <th>链接</th>
    <th>排序</th>
  </tr>

<% for navigation in @navigations %>
  <tr>
    <td><%=h navigation.name %></td>
    <td><%=h navigation.link %></td>
    <td><%=h navigation.nav_order %></td>
    <td><%= link_to 'Edit', edit_navigation_path(navigation) %></td>
    <td><%= link_to 'Destroy', navigation, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New navigation', new_navigation_path(:style=>params[:style]) %>
<fieldset class="demo">
  <LEGEND>操作说明：</LEGEND>
  <p>
    用于管理顶部及主导航。
  </p>
</fieldset>